/**
 * @author: gao
 * @create-date: 2025/3/10 22:43
 */

public class Test {
    public static void main(String[] args) {
        int[] array = {5,3,4,1,7,8,2,6,0,9};
        BinarySearchTree tree = new BinarySearchTree();
        for(int x:array){
            tree.Insert(x);
        }
        BinarySearchTree.TreeNode search = tree.Searh(4);
        System.out.println(search.val);
        tree.Remove(3);
        System.out.println();
    }
}
